home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.advocacy,comp.os.ms-windows.advocacy
- Subject: Re: intuition inefficient ?
- Date: 27 Feb 1996 02:24:44 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4gtq1c$mu0@sunsystem5.informatik.tu-muenchen.de>
- References: <4gm2qg$8lk@sunsystem5.informatik.tu-muenchen.de> <4grs7r$plr@harbinger.cc.monash.edu.au>
- NNTP-Posting-Host: hphalle0.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Bernd Meyer (bmeyer@bruce.cs.monash.edu.au) wrote:
- : Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
-
- : what --- there is two standard ways to catch the vblank signal on a
- : VGA card, and one of them is using an interrupt.
-
- Are you sure vblank interrupt is something "standard" on PC ?
- I believe each newer VGA got the possibility to send such an
- interrupt signal, but what about the _compatible_ way of using it ?
-
- : register. This is due to the fact that almost everyone quickly disables
- : the vblank interrupt as wasting valuable resources.
-
- _polling_ is waste of respources! so double buffering is waste of
- recources. efficient rastersplit free animation needs tripple buffering,
- which needs either an interrupt or a gfx-hardware that will use a
- write to adress-registers not immedeately, but after next vblank.
-
- : want an interrupt, you get one. How?
- :[...]
- : vblank signals. You can then set up one of those high precision timers
-
- one of those ? :) The _one and only_ which is able to cause interrupts
- in a normal PC.
-
- : Now was that really so hard? All of the functionality used in this
-
- No :) I knew, my friend told me. He also told that there are some
- problems. Such as interrupts occuring for the time the vblank bit
- is set. bzzzt, another frame cpu busy-wait. Won't occur on a DOS demo,
- but on a tasking environment it will.
-
- : example is very well documented and readily available under DOS and,
- : I presume, Windows.
- You can add a interrupt handler and are allowed to manipulate
- timers under win95 ? I don't believe. Only under DOS.
-
- : You probably know where my money is. Have a look at the SVGALIB for
- Yes, Bill Gates got it ;)
-
- : linux, especially the "wait_vblank" function....
-
- I never said you can't _busywait_ for a vblank on PC.
- On the Amiga, even _waiting_ for vblank gives cpu time to other
- tasks using function WaitTOF(). Only Amiga...
-
- : : I can't believe they'll ever implement those nice little things A500
- : : already had (vblank & stuff) into PC hardware _and_ the OSes (win, linux).
-
- : And I can't believe how narrow-minded you are, sorry.
-
- You didn't read exactly, I didn't tell about vblank-polling.
- But as narrow-minded resource-wasting PCer you probably can't
- think of anything more :)
-
- : Bernie
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-